//package com.lb.jwitter.action.util;
//
//import java.io.*;
//
//import org.springframework.context.ApplicationContext;
//import org.springframework.test.context.ContextConfiguration;
//
//import com.lb.jwitter.util.ApplicationContextProvider;
//import com.opensymphony.xwork2.Action;
//import com.tutego.jrtf.Rtf;
//import com.tutego.jrtf.RtfTemplate;
//
//
///**
// * This is a test suite in which all kinds of RTF functionality are tested
// * with RtfWriter and RtfWriter2.
// * 
// * @author Mark Hall
// */
//
//
//public class JRtfAction {
//
//	/**
//	 * Creates 2 RTF files with the same content, but using different Writers.
//	 * 
//	 * @param args no arguments needed
//	 */
//
//	public static void main(String[] args) throws Exception {
//		try{
//
//			RtfTemplate rtfTemplate = Rtf.template( new FileInputStream("template.rtf") );
//			rtfTemplate.inject( "maHoSo", "VNQ1123" );
//
//			rtfTemplate.inject( "hoTen", "nguyenn quoc viet" );
//			rtfTemplate.inject( "gioiTinh", "Nu" );
//			rtfTemplate.inject( "ngaySinh", "31.07.87" )
//			   .out( new FileOutputStream("out.rtf") );
//
//		
////		return Action.SUCCESS; 
//		}catch(Exception e){
//			 e.printStackTrace(); 
////			 return Action.ERROR; 
//		}
//	}
//}